gtk4.git
11 years agoGtkTextHandle: Better draw() implementation
Matthias Clasen [Sun, 13 Jul 2014 17:57:23 +0000 (13:57 -0400)]
GtkTextHandle: Better draw() implementation

Conceptually, text handles are boxes, whose content is a 'handle',
so draw background, frame and handle. With this, and the previous
commit, the cursor-handle theming in Adwaita now works as intended.

11 years agoAllow to use -gtk-icon-source for handles
Matthias Clasen [Sun, 13 Jul 2014 17:56:14 +0000 (13:56 -0400)]
Allow to use -gtk-icon-source for handles

This will let us use icons for touch selection handles, once
they use gtk_render_handle.

11 years agoAdwaita: Try to fix up selection touch handles
Matthias Clasen [Sun, 13 Jul 2014 17:34:59 +0000 (13:34 -0400)]
Adwaita: Try to fix up selection touch handles

The text handles reuse the style context from their parent widget,
and just add .cursor-handle. That means that the more specific
entry selectors override the .cursor-handle theming unless we
select for .entry.cursor-handle. We also need to work harder to
keep the .entry styling from drawing decorations around the outlines.

11 years agolistbox: Scroll headers on screen
Matthias Clasen [Sun, 13 Jul 2014 16:31:28 +0000 (12:31 -0400)]
listbox: Scroll headers on screen

The listbox code relies on the container focus adjustment handling
to scroll the cursor row on screen. But GtkContainer has no idea
about row headers, so ensure that we scroll the header on screen too.

11 years agowidget-factory: Fix a typo
Matthias Clasen [Sun, 13 Jul 2014 16:31:14 +0000 (12:31 -0400)]
widget-factory: Fix a typo

11 years agotests textiter: unit tests for cursor positions
Sébastien Wilmet [Tue, 15 Apr 2014 20:11:29 +0000 (22:11 +0200)]
tests textiter: unit tests for cursor positions

See the FIXME comment.

https://bugzilla.gnome.org/show_bug.cgi?id=618852

11 years agotextiter: small optimization for find_by_log_attrs()
Sébastien Wilmet [Fri, 11 Apr 2014 11:41:50 +0000 (13:41 +0200)]
textiter: small optimization for find_by_log_attrs()

Use gtk_text_iter_set_line_offset (&tmp_iter, 0) instead of
gtk_text_iter_get_line(). The difference should not be big. In the first
case the line doesn't need to be traversed thanks to the offset 0. For
get_line(), the btree must be traversed.

A temporary iter is needed to not break the behavior. But the behavior
is quite strange, the function works directly on the iter passed as an
argument to the function, even if the function returns FALSE (not
found). So maybe a later commit will fix this strange behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=629129

11 years agotextiter: remove recursivity of find_by_log_attrs()
Sébastien Wilmet [Thu, 10 Apr 2014 21:53:41 +0000 (23:53 +0200)]
textiter: remove recursivity of find_by_log_attrs()

find_by_log_attrs() was a recursive function. It is replaced by an
iteration.

The already_moved_initially parameter was TRUE only for the recursive
call, so the paramater is removed.

There is also a small cleanup of the find_visible_by_log_attrs()
(remove trailing spaces, fix indentation).

There is still a part to optimize for a later commit.

https://bugzilla.gnome.org/show_bug.cgi?id=629129

11 years agoGtkDialog: Set window titles in header bars
Matthias Clasen [Sun, 13 Jul 2014 13:56:06 +0000 (09:56 -0400)]
GtkDialog: Set window titles in header bars

This is fallout from the recent dialog changes. We don't set the
headerbar as titlebar early enough anymore, so when the window title
gets set, it does not get passed on to the headerbar. So, re-set it
manually when the titlebar is put in place.

https://bugzilla.gnome.org/show_bug.cgi?id=733099

11 years agolist-box: fix typo in natural size computation
Paolo Borelli [Sun, 13 Jul 2014 13:45:21 +0000 (15:45 +0200)]
list-box: fix typo in natural size computation

11 years agoAdwaita: Some theming for activatable list rows
Matthias Clasen [Sun, 13 Jul 2014 13:01:11 +0000 (09:01 -0400)]
Adwaita: Some theming for activatable list rows

11 years agowidget-factory: Use the new ::activatable property
Matthias Clasen [Sun, 13 Jul 2014 01:04:54 +0000 (21:04 -0400)]
widget-factory: Use the new ::activatable property

11 years agoGtkListBox: Add an activatable property for rows
Matthias Clasen [Sun, 13 Jul 2014 00:37:41 +0000 (20:37 -0400)]
GtkListBox: Add an activatable property for rows

This will let us theme activatable rows differently.
We also avoid emitting the ::row-activated signal for
rows that are not activatable. For compatibility reasons,
rows are activatable by default.

https://bugzilla.gnome.org/show_bug.cgi?id=733112

11 years agowidget-factory: Improve listbox example spacing
Matthias Clasen [Sat, 12 Jul 2014 23:48:06 +0000 (19:48 -0400)]
widget-factory: Improve listbox example spacing

11 years agowidget-factory: Fix the row activation example
Matthias Clasen [Sat, 12 Jul 2014 21:30:25 +0000 (17:30 -0400)]
widget-factory: Fix the row activation example

Turns out ::activate on listbox rows is only for key bindings,
so use ::row-activated.

11 years agoTrivial typo fix
Matthias Clasen [Sat, 12 Jul 2014 18:46:00 +0000 (14:46 -0400)]
Trivial typo fix

11 years agowidget-factory: Demonstrate listbox headers
Matthias Clasen [Sat, 12 Jul 2014 18:45:16 +0000 (14:45 -0400)]
widget-factory: Demonstrate listbox headers

Add a less trivial examples of headers in the colors listbox.

11 years agowidget-factory: Add some row activation to the listbox example
Matthias Clasen [Sat, 12 Jul 2014 16:54:21 +0000 (12:54 -0400)]
widget-factory: Add some row activation to the listbox example

This shows some fallout from the gesture conversion.

11 years agoUpdated POTFILES.skip
Piotr Drąg [Sat, 12 Jul 2014 13:15:44 +0000 (15:15 +0200)]
Updated POTFILES.skip

11 years agowidget-factory: Do no crash on variadic arguments
Stefano Facchini [Sat, 12 Jul 2014 09:35:42 +0000 (11:35 +0200)]
widget-factory: Do no crash on variadic arguments

11 years agowidget-factory: Add another listbox example
Matthias Clasen [Sat, 12 Jul 2014 07:31:29 +0000 (03:31 -0400)]
widget-factory: Add another listbox example

This one is long enough to scroll, and has selection.

11 years agoFix the build
Matthias Clasen [Sat, 12 Jul 2014 05:56:55 +0000 (01:56 -0400)]
Fix the build

gtkx.h can no longer be included internally, so skip it when
generating the gir. We include the individual headers anyway.

11 years agoinspector: Reshuffle Visual and General tabs
Matthias Clasen [Sat, 12 Jul 2014 05:43:03 +0000 (01:43 -0400)]
inspector: Reshuffle Visual and General tabs

Move the touchscreen switch to the other debug switches, and
move the hidpi spin to the other graphical controls. Since the
Visual tab is getting large, make it scroll. The General tab
is purely informational again.

11 years agoGtkStack: Render a background
Benjamin Otte [Sat, 12 Jul 2014 05:16:33 +0000 (07:16 +0200)]
GtkStack: Render a background

https://bugzilla.gnome.org/show_bug.cgi?id=733027

11 years agogtk-demo: This is not a unique app
Benjamin Otte [Sat, 12 Jul 2014 05:12:49 +0000 (07:12 +0200)]
gtk-demo: This is not a unique app

When running gtk-demo a 2nd time, it's usually to compare its
output with a different version of gtk-demo.

11 years agowidget-factory: This is not a unique app
Benjamin Otte [Sat, 12 Jul 2014 05:11:30 +0000 (07:11 +0200)]
widget-factory: This is not a unique app

When running widget-factory a 2nd time, it's usually to compare its
output with a different version of widget-factory.

11 years agoreftests: Add test for latest fix
Benjamin Otte [Sat, 12 Jul 2014 03:33:33 +0000 (05:33 +0200)]
reftests: Add test for latest fix

Ensure we draw the full backgorund on labels, not just where test
appears.

11 years agolabel: Include all of the allocation in the clip
Benjamin Otte [Sat, 12 Jul 2014 03:32:12 +0000 (05:32 +0200)]
label: Include all of the allocation in the clip

Otherwise, the CSS background we draw would be clipped if the ink rect
was smaller than the allocation (a very common thing).

Broken since 37030a771059f43ad701700380719d19cbc7c966 where we clipped
to the ink rect.

11 years agogtkx: Warn if we include gtkx.h during GTK compilation
Benjamin Otte [Sat, 12 Jul 2014 03:29:54 +0000 (05:29 +0200)]
gtkx: Warn if we include gtkx.h during GTK compilation

11 years agoa11y: Do not include gtkx.h directly
Benjamin Otte [Sat, 12 Jul 2014 03:27:49 +0000 (05:27 +0200)]
a11y: Do not include gtkx.h directly

11 years agosocket: Don't include gtk.h
Benjamin Otte [Sat, 12 Jul 2014 02:46:20 +0000 (04:46 +0200)]
socket: Don't include gtk.h

And fix remaining headers to not emit warnings

11 years agoRevert "GtkStack: Render background and chain up gtk_widget_draw ()."
Matthias Clasen [Sat, 12 Jul 2014 04:33:19 +0000 (00:33 -0400)]
Revert "GtkStack: Render background and chain up gtk_widget_draw ()."

This reverts commit f6695b962ff6462cfc8250f949505a17d0d9df6d.

11 years agoinspector: Reshuffle visual tab
Matthias Clasen [Sat, 12 Jul 2014 04:17:43 +0000 (00:17 -0400)]
inspector: Reshuffle visual tab

11 years agoinspector: Reorder tabs
Matthias Clasen [Sat, 12 Jul 2014 04:10:59 +0000 (00:10 -0400)]
inspector: Reorder tabs

Move Resources next to Objects, and Visual next to General.

11 years agoinspector: Fix the build
Matthias Clasen [Sat, 12 Jul 2014 03:45:18 +0000 (23:45 -0400)]
inspector: Fix the build

I forgot to test the previous commit with -Wimplicit-function-delcaration,
and it promptly broke.

11 years agoinspector: Clean up includes
Matthias Clasen [Sat, 12 Jul 2014 03:14:04 +0000 (23:14 -0400)]
inspector: Clean up includes

Don't include gtk.h, instead include individual headers.
And include config.h and gi18n-lib.h everywhere.

11 years agoinspector: Don't mark environment variables for translations
Matthias Clasen [Sat, 12 Jul 2014 02:29:58 +0000 (22:29 -0400)]
inspector: Don't mark environment variables for translations

These names don't change with the locale, after all.

11 years agowidget-factory: Add a selectable label
Matthias Clasen [Sat, 12 Jul 2014 02:23:07 +0000 (22:23 -0400)]
widget-factory: Add a selectable label

We already have selectable labels in some of the dialogs,
but this is more direct, and also shows links in labels.

11 years agogtklabel: Set the correct initial cursor
Timm Bäder [Wed, 9 Jul 2014 22:25:49 +0000 (00:25 +0200)]
gtklabel: Set the correct initial cursor

Use GDK_XTERM only if the label is really selectable.

https://bugzilla.gnome.org/show_bug.cgi?id=732970

11 years agowidget-factory: Adapt to label clipping change
Matthias Clasen [Sat, 12 Jul 2014 01:15:03 +0000 (21:15 -0400)]
widget-factory: Adapt to label clipping change

The paned examples on page 2 were implicitly relying on labels
drawing unclipped. Instead of setting the view class only on the
labels, set it on the paned's instead.

11 years agoGtkStack: Render background and chain up gtk_widget_draw ().
William Hua [Thu, 10 Jul 2014 14:39:48 +0000 (10:39 -0400)]
GtkStack: Render background and chain up gtk_widget_draw ().

https://bugzilla.gnome.org/show_bug.cgi?id=733027

11 years agoDocument that the drag icon window will be modified
Matthias Clasen [Fri, 11 Jul 2014 22:09:47 +0000 (18:09 -0400)]
Document that the drag icon window will be modified

This is in response to the complaint in
https://bugzilla.gnome.org/show_bug.cgi?id=732991

11 years agoCorrectly generate def files again
Руслан Ижбулатов [Fri, 23 Aug 2013 14:15:29 +0000 (14:15 +0000)]
Correctly generate def files again

11 years agoRevert "win32: Drop remnants of def files"
Ignacio Casal Quinteiro [Fri, 11 Jul 2014 16:20:53 +0000 (18:20 +0200)]
Revert "win32: Drop remnants of def files"

This reverts commit d76785a993aa71f880d5805d1c010d4d12000bc1.

11 years agoinspector: Add comments
Matthias Clasen [Fri, 11 Jul 2014 14:27:00 +0000 (10:27 -0400)]
inspector: Add comments

The binding support pokes some not-quite-official (or entirely
private) implementation details. Add comment to warn about this.

11 years agoUpdated Scottish Gaelic translation
GunChleoc [Fri, 11 Jul 2014 10:55:19 +0000 (10:55 +0000)]
Updated Scottish Gaelic translation

11 years agoUpdated Scottish Gaelic translation
GunChleoc [Fri, 11 Jul 2014 10:51:53 +0000 (10:51 +0000)]
Updated Scottish Gaelic translation

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Fri, 11 Jul 2014 09:00:04 +0000 (12:00 +0300)]
Updated Hebrew translation

11 years agoinspector: Show settings bindings
Matthias Clasen [Fri, 11 Jul 2014 04:48:51 +0000 (00:48 -0400)]
inspector: Show settings bindings

Similar to the previous commit, show settings bindings for
properties in the property editor.

11 years agoinspector: Show property bindings
Matthias Clasen [Fri, 11 Jul 2014 03:57:37 +0000 (23:57 -0400)]
inspector: Show property bindings

This commit add information about existing bindings to the
property editor.

11 years agoAdwaita: Set background color of header buttons
Matthias Clasen [Thu, 10 Jul 2014 23:36:26 +0000 (19:36 -0400)]
Adwaita: Set background color of header buttons

Without a background, one can see titles shine through when
resizable columns are squeezed.

11 years agoinspector: Allow setting hidpi scale
Matthias Clasen [Thu, 10 Jul 2014 22:36:16 +0000 (18:36 -0400)]
inspector: Allow setting hidpi scale

11 years agoCosmetic formatting fixes
Matthias Clasen [Thu, 10 Jul 2014 22:35:54 +0000 (18:35 -0400)]
Cosmetic formatting fixes

11 years agoinspector: Show GSETTINGS_SCHEMA_DIR when set
Matthias Clasen [Thu, 10 Jul 2014 21:37:26 +0000 (17:37 -0400)]
inspector: Show GSETTINGS_SCHEMA_DIR when set

11 years agoGtkTreeViewColumn: a better way to avoid overlap
Matthias Clasen [Thu, 10 Jul 2014 19:20:01 +0000 (15:20 -0400)]
GtkTreeViewColumn: a better way to avoid overlap

The overlap was caused by using pack-end for the arrow, which
causes it to be allocated from the other end. Avoid the problem
by using pack-start for both the title and the arrow, and
reordering them according to xalign.

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Thu, 10 Jul 2014 18:49:37 +0000 (20:49 +0200)]
Updated POTFILES.in and POTFILES.skip

11 years agoAdwaita: Add comment around the .overshoot style class
Carlos Garnacho [Thu, 10 Jul 2014 14:55:00 +0000 (16:55 +0200)]
Adwaita: Add comment around the .overshoot style class

And document the oddities around it, as requested by Lapo

11 years agotreeview: remove needless duplicate gtk_widget_set_parent_window() call
Carlos Garnacho [Wed, 9 Jul 2014 14:21:41 +0000 (16:21 +0200)]
treeview: remove needless duplicate gtk_widget_set_parent_window() call

This same call happens a few lines above.

11 years agoGtkTreeView: Avoid overlapping sort indicator
Matthias Clasen [Thu, 10 Jul 2014 18:13:35 +0000 (14:13 -0400)]
GtkTreeView: Avoid overlapping sort indicator

Hide the sort indicator when it would overlap the column title.

11 years agoreftests: Add test for the recent label changes
Benjamin Otte [Thu, 10 Jul 2014 16:55:37 +0000 (18:55 +0200)]
reftests: Add test for the recent label changes

11 years agowidget: Remove special case for clipping
Benjamin Otte [Thu, 10 Jul 2014 16:31:58 +0000 (18:31 +0200)]
widget: Remove special case for clipping

Labels now call gtk_widget_set_clip() so there is no longer a need to
exclude them from clipping.

11 years agolabel: Add ink rect support to GtkLabel
Benjamin Otte [Thu, 10 Jul 2014 16:31:15 +0000 (18:31 +0200)]
label: Add ink rect support to GtkLabel

11 years agolabel: Move function
Benjamin Otte [Thu, 10 Jul 2014 16:30:21 +0000 (18:30 +0200)]
label: Move function

This just moves the function, no actual code changes.

11 years agotests: Add deprecation guards
Benjamin Otte [Thu, 10 Jul 2014 12:23:54 +0000 (14:23 +0200)]
tests: Add deprecation guards

... for newly deprecated gtk_icon_info_get_builtin_pixbuf()

11 years agoreftests: Improve workaround for GtkGrid bug
Benjamin Otte [Thu, 10 Jul 2014 12:16:06 +0000 (14:16 +0200)]
reftests: Improve workaround for GtkGrid bug

... so that it works with wide separators. Or rather: with separators
that don't request 1px size but any other number. Do that by making the
placeholder request the same size by indeed stuffing (hidden) separators
in it.

11 years agodocs: Change documentation to consistenly use "Returns:"
Javier Jardón [Thu, 10 Jul 2014 15:52:44 +0000 (16:52 +0100)]
docs: Change documentation to consistenly use "Returns:"

Instead "Return value:" or "Return:"

11 years agoinspector: Disable non-functional controls
Matthias Clasen [Thu, 10 Jul 2014 14:33:27 +0000 (10:33 -0400)]
inspector: Disable non-functional controls

Some of the features we expose can be hardcoded via environment
variables. In that case, don't confuse the user by letting them
change settings that have no effect.

11 years agoinspector: Add a switch for simulating touch
Matthias Clasen [Thu, 10 Jul 2014 14:11:10 +0000 (10:11 -0400)]
inspector: Add a switch for simulating touch

This makes it easy to test test touchscreen features with a
plain old mouse.

11 years agoAdd a 'touchscreen' debug flag
Matthias Clasen [Thu, 10 Jul 2014 14:10:11 +0000 (10:10 -0400)]
Add a 'touchscreen' debug flag

This has the same effect as the GTK_TEST_TOUCHSCREEN environment
variable, but can be toggled at runtime.

11 years agoAdwaita: treeview progressbar fix
Lapo Calamandrei [Thu, 10 Jul 2014 13:47:57 +0000 (15:47 +0200)]
Adwaita: treeview progressbar fix

11 years agoAdwaita: saner treeview lines style plus treeview expander style
Lapo Calamandrei [Thu, 10 Jul 2014 12:59:08 +0000 (14:59 +0200)]
Adwaita: saner treeview lines style plus treeview expander style

11 years agoAdwaita: initial and hopefully temporary treeview separation lines style
Lapo Calamandrei [Thu, 10 Jul 2014 11:53:37 +0000 (13:53 +0200)]
Adwaita: initial and hopefully temporary treeview separation lines style

11 years agowidget-factory: Enable even/odd rows
Matthias Clasen [Thu, 10 Jul 2014 11:15:33 +0000 (07:15 -0400)]
widget-factory: Enable even/odd rows

More treeview testing.

11 years agowidget-factory: More treeview examples
Matthias Clasen [Thu, 10 Jul 2014 10:31:45 +0000 (06:31 -0400)]
widget-factory: More treeview examples

The new treeview on page 3 sports expanders, grid and tree lines,
alternating row colors, etc.

11 years agoAdwaita: drawing functions housekeeping
Lapo Calamandrei [Thu, 10 Jul 2014 10:22:41 +0000 (12:22 +0200)]
Adwaita: drawing functions housekeeping

11 years agoAdwaita: simplify buttons drawing function
Lapo Calamandrei [Thu, 10 Jul 2014 09:55:51 +0000 (11:55 +0200)]
Adwaita: simplify buttons drawing function

11 years agoDocs: Mention that shadow type is a lie
Matthias Clasen [Thu, 10 Jul 2014 04:16:04 +0000 (00:16 -0400)]
Docs: Mention that shadow type is a lie

As requested here:
https://bugzilla.gnome.org/show_bug.cgi?id=659926#c2

11 years agoAdwaita: Set a background color for the overshoot class
Carlos Garnacho [Mon, 30 Jun 2014 18:46:59 +0000 (20:46 +0200)]
Adwaita: Set a background color for the overshoot class

https://bugzilla.gnome.org/show_bug.cgi?id=731297

11 years agoscrolledwindow: Remove overshoot window and displacement animation
Carlos Garnacho [Wed, 28 May 2014 17:17:02 +0000 (19:17 +0200)]
scrolledwindow: Remove overshoot window and displacement animation

The displacement animation has been replaced by edge gradients, that
have a stronger color the harder overshooting is hit. This makes it
possible to remove the internal overshoot window, which was merely
used to have contents displaced when overshooting to top/left.

Overshooting to bottom/right used to cause queue_resize() to be
called on the scrolled window, this isn't necessary anymore either.

https://bugzilla.gnome.org/show_bug.cgi?id=731297

11 years agostylecontext: Add GTK_STYLE_CLASS_OVERSHOOT
Carlos Garnacho [Mon, 30 Jun 2014 18:45:32 +0000 (20:45 +0200)]
stylecontext: Add GTK_STYLE_CLASS_OVERSHOOT

This class is meant to render the hint on scrolledwindow corners
when scrolling past-limits.

https://bugzilla.gnome.org/show_bug.cgi?id=731297

11 years agotextview: Call gtk_widget_size_allocate() on children widgets invariably
Carlos Garnacho [Tue, 8 Jul 2014 14:06:00 +0000 (16:06 +0200)]
textview: Call gtk_widget_size_allocate() on children widgets invariably

There was this hack, taken verbatim from GtkCList according to the comment,
that would recursively translate the allocation during scrolling, and set
it on children widgets through the direct gtk_widget_set_allocation() setter.

Since commit 4f89eb05cf8a, this has caused the wrong clipping areas to children
widgets of a textview. The reasons for this seem lost in time, and the approach
seems indeed wrong for windowed widgets as the repositioning of those windows
couldn't happen.

So replace all of this with just a gtk_widget_size_allocate() call, which does
work ok for the children widgets embedded in the "multiple views" gtk demo, and
ought to work for every other widget.

https://bugzilla.gnome.org/show_bug.cgi?id=732900

11 years agotreeview: Add back the Gdk pointer grab during column dragging
Carlos Garnacho [Wed, 9 Jul 2014 14:20:01 +0000 (16:20 +0200)]
treeview: Add back the Gdk pointer grab during column dragging

The reparenting happening on the column header so it gets a movable
window breaks the implicit grab, so this is one situation were we
want a pointer grab, if just to replace it.

https://bugzilla.gnome.org/show_bug.cgi?id=732933

11 years agotreeview: Fix horizontal position during column dragging
Carlos Garnacho [Wed, 9 Jul 2014 14:18:05 +0000 (16:18 +0200)]
treeview: Fix horizontal position during column dragging

Code was expecting view coordinates, not widget ones, as we're
only dealing with horizontal displacements, just adding the
horizontal adjustment value suffices.

https://bugzilla.gnome.org/show_bug.cgi?id=732933

11 years agoMake Adwaita the default theme across platforms
Matthias Clasen [Thu, 10 Jul 2014 01:19:09 +0000 (21:19 -0400)]
Make Adwaita the default theme across platforms

This ensures that we have a polished out-of-the-box appearance
on all platforms.

11 years agoUse a define for the default icon theme name
Matthias Clasen [Thu, 10 Jul 2014 01:18:18 +0000 (21:18 -0400)]
Use a define for the default icon theme name

We're using this name in two places, so match what we are doing
for the default theme name, and use a macro.

11 years agoGtkIconTheme: Rename a macro
Matthias Clasen [Thu, 10 Jul 2014 01:12:08 +0000 (21:12 -0400)]
GtkIconTheme: Rename a macro

We use DEFAULT_THEME_NAME in gtksettings.c as well, and this
can be a confusing when grepping, so rename this to
FALLBACK_ICON_THEME.

11 years agoGtkColorButton: Some formatting cleanups
Matthias Clasen [Thu, 10 Jul 2014 01:08:18 +0000 (21:08 -0400)]
GtkColorButton: Some formatting cleanups

11 years agoGtkColorButton: Use a color swatch
Matthias Clasen [Thu, 10 Jul 2014 00:50:47 +0000 (20:50 -0400)]
GtkColorButton: Use a color swatch

This saves some code and lets us reuse the color swatch styling.
Among other things, this fixes a lack of discernible border when
the selected color is very similar to the background.

https://bugzilla.gnome.org/show_bug.cgi?id=680885

11 years agoGtkColorSwatch: Respect an explicitly set size
Matthias Clasen [Thu, 10 Jul 2014 00:44:06 +0000 (20:44 -0400)]
GtkColorSwatch: Respect an explicitly set size

This will let us use a suitably sized color swatch in the color
button.

11 years agobuilder test: Adjust expections
Matthias Clasen [Wed, 9 Jul 2014 23:52:55 +0000 (19:52 -0400)]
builder test: Adjust expections

Dialogs no longer set a headerbar as titlebar unless use-header-bar
is set to 1. Update the test to do that.

11 years agoapp chooser: Move buttons to template
Matthias Clasen [Wed, 9 Jul 2014 23:46:16 +0000 (19:46 -0400)]
app chooser: Move buttons to template

Use the new builder dialog action support.

11 years agofont chooser: Move buttons to template
Matthias Clasen [Wed, 9 Jul 2014 23:43:20 +0000 (19:43 -0400)]
font chooser: Move buttons to template

Use the new builder dialog action support.

11 years agoa11y: Update expected output for color chooser
Matthias Clasen [Wed, 9 Jul 2014 23:38:29 +0000 (19:38 -0400)]
a11y: Update expected output for color chooser

11 years agocolor chooser: Move buttons to template
Matthias Clasen [Wed, 9 Jul 2014 23:39:19 +0000 (19:39 -0400)]
color chooser: Move buttons to template

We can now use the new builder action support.

11 years agoGtkDialog: Fix setting of default action
Matthias Clasen [Wed, 9 Jul 2014 23:40:11 +0000 (19:40 -0400)]
GtkDialog: Fix setting of default action

The recent reshuffling caused an ordering problem where we would
hide the action area before relocating the buttons to the header
bar. But hiding makes the default button loose its defaultness.
Rearrange things so that we move the buttons before hiding the
action area, and thus preserve the default.

11 years agoAdwaita: vertically linked buttons
Lapo Calamandrei [Wed, 9 Jul 2014 17:37:41 +0000 (19:37 +0200)]
Adwaita: vertically linked buttons

11 years agogtk-demo: Fix expand button box demo
Matthias Clasen [Wed, 9 Jul 2014 17:18:41 +0000 (13:18 -0400)]
gtk-demo: Fix expand button box demo

Set the spacing to 0, so the buttons are actually linked.

11 years agoicontheme: Use correct URI for icons in resource paths
Stefano Facchini [Tue, 8 Jul 2014 12:12:39 +0000 (14:12 +0200)]
icontheme: Use correct URI for icons in resource paths

Fix based on a patch by Stefano Faccini,
https://bugzilla.gnome.org/show_bug.cgi?id=732894

11 years agowidget-factory: Use the new application resource support
Matthias Clasen [Wed, 9 Jul 2014 14:13:38 +0000 (10:13 -0400)]
widget-factory: Use the new application resource support

11 years agoUpdate more places for the changed icon name
Matthias Clasen [Wed, 9 Jul 2014 12:03:57 +0000 (08:03 -0400)]
Update more places for the changed icon name